#ifndef DATAHELPER_H
#define DATAHELPER_H

#include "QString"
#include "QColor"
#include "QPair"

struct Group {
    int id;
    int usingCount = 0;
    bool isRemoveCandidate  = false;
    QString *name;
    QColor color;
};

struct Task {
    int id;
    int timer;
    bool status;
    bool isRemoveCandidate  = false;
    bool isRenamed          = false;
    bool isNeedToCreateFile = false;
    QString *name;
    QString *firstName;
    Group *group;
    void rename(QString *newName){
        if(newName == firstName)
        { name = firstName; isRenamed = true; }
        else
        { name = newName;   isRenamed = true; }
    }
};

#endif // DATAHELPER_H
